<?php
/**
 * 验证码页面
 */ 
class Auth extends CI_Controller
{
	public function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->library('authcode');
	}

	public function index($x = 70, $y = 25)
	{
		@ob_clean();
        header('content-type:image/png');
		$this->authcode->width=$x;
		$this->authcode->height=$y;
		$this->authcode->draw();
	}
}